package com.itheima.b_operator;

/**
 * 面试题：自增自减运算符
 */
public class Demo04 {

    public static void main(String[] args) {

        int c = 10;
        int d = 5;

        int e = c++ + ++c - --d - ++d + 1 + c--;  // 10 + 12 - 4 - 5 + 1 + 12

        //打印e、c、d分别是多少？
        System.out.println(e);  //26
        System.out.println(c);  //11
        System.out.println(d);  //5

    }
}
